package com.erb.config;

import com.erb.config.interceptor.loanLoginInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;

@Configuration
public class laonWebMvcConfig implements WebMvcConfigurer {
	// 登录验证session拦截器
	@Resource
	private loanLoginInterceptor loanLoginInterceptor;

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(loanLoginInterceptor)
				.addPathPatterns("/loan/**")
				.excludePathPatterns("/loan/back-make/**")
				.excludePathPatterns("/loan/reglog/**")
				.excludePathPatterns("/loan/reglog/**")
				.excludePathPatterns("/loan/back-loanapplu")
				.excludePathPatterns("/loan/loanmian")
				.excludePathPatterns("/loan/updapplyst")
				.excludePathPatterns("/loan/back-audit/**");

	}
}
